﻿using Apps.Models;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Apps.DAL.HC
{
    public partial class HCCateRepository:DbContext<CHEMICAL_PRODUCTION_CATE>
    {
        public List<CHEMICAL_PRODUCTION_CATE> GetList(string parentId)
        {
            return Db.Queryable<CHEMICAL_PRODUCTION_CATE>().Where(x=>x.ParentId==parentId).OrderBy(x => x.Sort, OrderByType.Desc).ToList();
        }
    }
}
